Skip to content

fix: update example code for switching camera#221

Merged
davidliu merged 2 commits intomainfrom
dl/update_switch_camera
Mar 21, 2025
Merged

fix: update example code for switching camera#221
davidliu merged 2 commits intomainfrom
dl/update_switch_camera

Conversation

@davidliu
Copy link
Copy Markdown
Contributor

No description provided.

@davidliu davidliu changed the title chore: update livekit-client to 2.9.8 fix: update example code for switching camera Mar 21, 2025
@davidliu davidliu merged commit 9ecdc21 into main Mar 21, 2025
8 checks passed
@davidliu davidliu deleted the dl/update_switch_camera branch March 21, 2025 15:26
@Mihai-github
Copy link
Copy Markdown

@davidliu The VideoCaptureOptions interface declares that the facingMode only accepts these values 'user' | 'environment' | 'left' | 'right' but in the example you have declared this:

let facingModeStr = !isCameraFrontFacing ? 'front' : 'environment';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants